Skip to content

Conversation

@sbueringer
Copy link
Member

@sbueringer sbueringer commented Jul 25, 2025

Signed-off-by: Stefan Büringer [email protected]

What this PR does / why we need it:
controller-runtime and k8s.io/* generally don't set TypeMeta on typed objects. So we should stop relying on it being set. Accordingly we should also not set it on typed objects in tests.

This PR mostly focuses on unit tests. There will be another PR with modifications to prod code.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 25, 2025
@k8s-ci-robot k8s-ci-robot requested a review from chrischdi July 25, 2025 16:52
@k8s-ci-robot k8s-ci-robot added the do-not-merge/needs-area PR is missing an area label label Jul 25, 2025
@k8s-ci-robot k8s-ci-robot requested a review from elmiko July 25, 2025 16:52
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 25, 2025
@sbueringer sbueringer changed the title [WIP] 🌱 Stop setting and relying on TypeMeta [WIP] 🌱 Stop setting and relying on TypeMeta in typed objects Jul 25, 2025
@sbueringer
Copy link
Member Author

Pausing the work on this for now, will get back to it in a bit

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 1, 2025
@sbueringer sbueringer force-pushed the pr-stop-setting-typemeta branch from 9501b0a to 4c6c105 Compare October 25, 2025 06:41
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 25, 2025
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

@sbueringer sbueringer added the area/misc Issues or PRs not related to any other area label Oct 25, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-area PR is missing an area label label Oct 25, 2025
@sbueringer sbueringer force-pushed the pr-stop-setting-typemeta branch from 4c6c105 to 4bbff0b Compare October 27, 2025 11:22
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 27, 2025
@sbueringer sbueringer force-pushed the pr-stop-setting-typemeta branch from 4bbff0b to d3f22da Compare October 28, 2025 09:13
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 28, 2025
@sbueringer sbueringer force-pushed the pr-stop-setting-typemeta branch from d3f22da to db6b1d2 Compare October 28, 2025 09:28
@sbueringer sbueringer changed the title [WIP] 🌱 Stop setting and relying on TypeMeta in typed objects 🌱 Stop setting and relying on TypeMeta in typed objects Oct 28, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 28, 2025
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

@sbueringer sbueringer force-pushed the pr-stop-setting-typemeta branch from db6b1d2 to 2a010f0 Compare October 28, 2025 09:54
@sbueringer
Copy link
Member Author

/test pull-cluster-api-e2e-main

@fabriziopandini
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 28, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b2127c196e1df804751dd13529d14d09a8a027ac

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 28, 2025
@chrischdi
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit fbdba20 into kubernetes-sigs:main Oct 28, 2025
19 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.12 milestone Oct 28, 2025
@sbueringer sbueringer deleted the pr-stop-setting-typemeta branch October 28, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/misc Issues or PRs not related to any other area cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants